﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Behaviour.StatePattern;

namespace dpdw.testing.Behaviour
{
    [TestClass]
    public class TestStatePattern
    {
        [TestMethod]
        public void TestStatePatternMethod1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestStatePatternMethod1");

            GumballMachine gumballMachine = new GumballMachine(5);

            gumballMachine.InsertQuarter();
            gumballMachine.TurnCrank();

            gumballMachine.InsertQuarter();
            gumballMachine.TurnCrank();
            gumballMachine.InsertQuarter();
            gumballMachine.TurnCrank();
        }
    }
}
